package com.xuecheng.content.api;

import com.xuecheng.content.model.dto.MediaFilesDto;
import com.xuecheng.content.model.po.TeachplanMedia;
import com.xuecheng.content.service.TeachplanMediaService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@Api(value ="教学计划",tags = "教学计划文件管理")
public class TeachplanMediaController {

    @Autowired
    TeachplanMediaService teachplanMediaService;
    @PostMapping("/teachplan/updateMedia")
    public Boolean updateFileInfo(@RequestBody Map<String, MediaFilesDto> mediaFilesMap){
        return teachplanMediaService.updateFileInfo(mediaFilesMap);
    }
}
